package com.example.ai.repository;

import com.example.ai.entity.QARecord;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface QARecordRepository extends JpaRepository<QARecord, Long> {
    List<QARecord> findByUserIdAndDocumentIdOrderByCreateTimeDesc(Long userId, Long documentId);
    List<QARecord> findByUserIdOrderByCreateTimeDesc(Long userId);
} 